!function t(e,i,s){ 
	function n(a,l){
		if(!i[a]){
			if(!e[a]){
				var r="function"==typeof require&&require;
				if(!l&&r)return r(a,!0);
				if(o)return o(a,!0);
				var d=new Error("Cannot find module '"+a+"'");
				throw d.code="MODULE_NOT_FOUND",d
			}
			var c=i[a]={exports:{}};
				e[a][0].call(
					c.exports,
					function(t){
						var i=e[a][1][t];
						return n(i?i:t)
					},c,c.exports,t,e,i,s
				)
		}
		return i[a].exports
	}
	for(var o="function"==typeof require&&require,a=0;a<s.length;a++)
		n(s[a]);
		return n
}
({
	"/Users/rufeng/www/shop-detail/api/sku.js":[
			function(t,e){
						var i,s={};
						e.exports.setData=function(t){o(t)&&(i=t)},
				
						e.exports.getTotalStock=function(){return s.totalStock?s.totalStock:void 0},
						
						e.exports.getStyleLen=function(){return s.styleLen?s.styleLen:0},
						
						e.exports.getSizeLen=function(){return s.sizeLen?s.sizeLen:0},
						
						e.exports.getSkuItem=function(t,e){if(t||e){var i={};

			return t.styleId&&t.sizeId?i="style"==t.type?{
						
						price:e.style[t.styleId].price[t.sizeId],
							
						nowprice:e.style[t.styleId].nowprice[t.sizeId],
							
						style:e.style[t.styleId].style,
						
						image:e.style[t.styleId].image,
						
						stock:e.style[t.styleId].stocks[t.sizeId],
						
						stocks:e.style[t.styleId].stocks,
						
						size:e.style[t.styleId].sizeVals[t.sizeId],
						
						id:e.style[t.styleId].id[t.sizeId]
							
						}:{
						
						price:e.size[t.sizeId].price[t.styleId],
							
						nowprice:e.size[t.sizeId].nowprice[t.styleId],
							
						size:e.size[t.sizeId].size,
							
						stock:e.size[t.sizeId].stocks[t.styleId],
							
						stocks:e.size[t.sizeId].stocks,
							
						style:e.size[t.sizeId].styleVals[t.styleId],
							
						id:e.size[t.sizeId].id[t.styleId]
							
						}:t.styleId?i=e.style[t.styleId]:t.sizeId&&(i=e.size[t.sizeId]),i||{}
						}
						
						},
							
						e.exports.getSkuItems=function(){
							
							var t=n();
							
							if("undefined"!=typeof t&&t){
								
								var e=i.attribute,s=t.styleIds,o=t.sizeIds,a=s.length,l=o.length,r={style:{},size:{}};
								
								if(a>0)
									if(l>0)
										for(var d=0,c=a;c>d;d++)
											{
												r.style[s[d]]={},
													
												r.style[s[d]].id={},
													
												r.style[s[d]].stocks={},
													
												r.style[s[d]].sizeVals={},
													
												r.style[s[d]].nowprice={},
													
												r.style[s[d]].price={};
												
												for(var u=0,f=d*l,m=(d+1)*l;m>f;f++)
													r.style[s[d]].id[e[f].sizeId]=e[f].id,
													r.style[s[d]].stocks[e[f].sizeId]=e[f].stock,
													r.style[s[d]].sizeVals[e[f].sizeId]=e[f].size,
													r.style[s[d]].nowprice[e[f].sizeId]=e[f].nowprice,
													r.style[s[d]].price[e[f].sizeId]=e[f].price,
													r.style[s[d]].image=e[f].image,
													r.style[s[d]].style=e[f].style,
													0===e[f].stock&&++u;
													
													u==l&&(r.style[s[d]].disable=!0)
												}
												else for(var d=0,c=a;c>d;d++)
												r.style[s[d]]={},
													
												r.style[s[d]].id=e[d].id,
													
												r.style[s[d]].stock=e[d].stock,
													
												r.style[s[d]].image=e[d].image,
													
												r.style[s[d]].style=e[d].style,
													
												r.style[s[d]].nowprice=e[d].nowprice,
													
												r.style[s[d]].price=e[d].price,
													
												0===e[d].stock&&(r.style[s[d]].disable=!0);
												
											if(l>0)if(a>0)
													for(var d=0,c=l;c>d;d++){
														r.size[o[d]]={},
														r.size[o[d]].id={},
														r.size[o[d]].stocks={},
														r.size[o[d]].styleVals={},
														r.size[o[d]].nowprice={},
														r.size[o[d]].price={};
														for(var u=0,f=0,m=a;m>f;f++){
															var p=f*l+d;
															r.size[o[d]].id[e[p].styleId]=e[p].id,

															r.size[o[d]].stocks[e[p].styleId]=e[p].stock,
																
															r.size[o[d]].styleVals[e[p].styleId]=e[p].style,
																
															r.size[o[d]].nowprice[e[p].styleId]=e[p].nowprice,
																
															r.size[o[d]].price[e[p].styleId]=e[p].price,
																
															r.size[o[d]].size=e[p].size,
																
															0===e[p].stock&&++u}u==a&&(r.size[o[d]].disable=!0)
																
														}
														else for(var d=0,c=l;c>d;d++)
															r.size[o[d]]={},
															r.size[o[d]].id=e[d].id,
															r.size[o[d]].stock=e[d].stock,
															r.size[o[d]].size=e[d].size,
															r.size[o[d]].nowprice=e[d].nowprice,
															r.size[o[d]].price=e[d].price,
															0===e[d].stock&&(r.size[o[d]].disable=!0);
													return r
														
											}
											
										};
					var n=function(){
						if("undefined"!=typeof i&&i){
							for(var t=i.attribute,e=[],n=[],o=[],l=[],r=0,d=t.length-1;d>=0;d--)t[d].styleId&&(e.push(t[d].styleId),n.push(t[d].style)),t[d].sizeId&&(o.push(t[d].sizeId),l.push(t[d].size)),r+=t[d].stock||0;
							return e=a(e),o=a(o),s.styleLen=e.length,s.sizeLen=o.length,s.totalStock=r,{styleIds:e,sizeIds:o}}},o=function(t){return"undefined"==typeof t||!t||!t.attribute||t.attribute.length<=0?!1:!0},a=function(t){t=t.slice().sort(function(t,e){return t>e?1:-1});for(var e,i,s=0,n=t.length;n>s;s++){
								for(e=s,i=t[s];n>e+1&&t[e+1]===i;)e++;e-s&&(e-=s,t.splice(s+1,e),n-=e)}
								
								return t
									
								}
							},
		{}						
	],
	"/Users/rufeng/www/shop-detail/js/module-detail-comment.js":[
									
								function(t,e){
									
									e.exports=function(){
										
										var t={},e=$("#J_ModuleComment"),
									
								i={
									
									pageSize:20,
										
									sort:1,
										
									isNewDetail:1,
										
									itemId:window.detailInfo.itemid,type:1
										
								};
					t.render={
						
						init:function(){}
						
					},
						
					t.event={
						init:function(){
							t.event.showImg(),t.event.switchTags(),t.event.switchPage(),t.event.switchExplain(),t.event.getComments(),t.event.showComments()
								
						},
								
					showImg:function(){
						
						$(document).on("click",".show-img li",function(){
							var t=$(this).closest(".show-img"),e=t.find(".big-img"),i=$(this).find("img")[0].src;
							
							$(this).hasClass("c")?($(this).removeClass("c"),e.removeClass("c").slideUp()):($(this).addClass("c").siblings().removeClass("c"),e.find("img").attr("src",i.replace("100x100","468x468")),e.addClass("c").slideDown())})
								
							.on("click",".show-img .big-img",function(){
								
								$(this).hasClass("c")?($(this).removeClass("c").slideUp(),
									
								$(this).closest(".show-img").find("li").removeClass("c")):$(this).slideDown()
									
							})
						},
									
					switchTags:function(){
						
						e.on("click",".tags a",function(){
							e.find(".nav a").removeClass("c"),
								
							$(this).hasClass("c")?($(this).removeClass("c"),
								
							delete i.emotion,
								
							delete i.property):($(this).addClass("c").siblings("a").removeClass("c"),
								
							i.emotion=$(this).attr("data-emotion"),
								
							i.property=$(this).attr("data-property"),
								
							delete i.isImg),MOGU&&MOGU.Globe_Trace_Log("shop-detail-comment-tags"),
								
							t.event.getComments()
						})
								
						.on("click",".tags .all",function(){
							var t=$(this).closest(".tags"),e=t.find(".list");
							$(this).find("b").toggleClass("c"),
								
							e.hasClass("show")?e.removeClass("show"):e.addClass("show")
								
						})
							
					},
						
					switchPage:
						
					function(){
						
						var t=$("#J_GoodsNav"),i=t.height();
						
						e.on("click",".pagination a",function(e){
							
							e.preventDefault();
							
							var s=$(this).attr("href");s&&""!=s&&$.ajax({url:s,type:"POST",dataType:"JSON",data:{isNewDetail:1}
							
						}).done(function(e){
							
							if(null==e)
								
							alert(MGLANG.msgTimeout);
							
							else if(1001==e.status.code){
								
								var s=$("#J_ModuleComments");
								
								s.html(e.result);
								
								var n=s.offset().top;
								
								"J_ModuleDetail"==t.find("li.c").attr("data-id")?n=n-i+10:n-=60,
									
								$("html, body").scrollTop(n)
									
							}else 
								
							alert(e.status.msg)
								
							})
						})
					},
						
					switchExplain:
						
					function(){
						},
									
								
						getComments:
							
						function(){$.post("/trade/item_detail/ratelist",i,function(t){
							var	t=$.parseJSON(t);1001==t.status.code&&$("#J_ModuleComments").html(t.result||"")})
						},
							
						showComments:function(){e.on("click",".nav a:not(.disable)",function(){e.find(".tags a").removeClass("c"),$(this).hasClass("c")||($(this).addClass("c").siblings("a").removeClass("c"),"img"==$(this).attr("data-type")?i.isImg=1:delete i.isImg,delete i.emotion,delete i.property,t.event.getComments())}).on("click",".J_CommentSort",function(){i.sort=$(this).attr("data-type"),MOGU&&MOGU.Globe_Trace_Log(1==i.sort?"shop-detail-comment-sort-default":"shop-detail-comment-sort-time"),t.event.getComments()})}};
					var s=function(){t.render.init(),t.event.init()};
					return{init:s}
					}
				},
		{}
	],
	"/Users/rufeng/www/shop-detail/js/module-detail-goods.js":[
		function(t,e){
			var i=t("../api/sku"),
				s=t("../js/widget/input-num"),
				n=t("../js/widget/carousel"),
				o=t("../js/widget/scroll-load"),
				a=t("../js/widget/count-down"),
				l="production"==MOGUPROFILE.appEnv?"http://www.mogujie.com":"";
			e.exports=function(){
				var t={},
				e=$("#J_GoodsInfo"),
				r=$("#J_GoodsSku"),
				d=r.find(".J_GoodsStock"),
				c=$("#J_BigImg"),
				u=$("#J_SmallImgs"),
				f=$("#J_GoodsNum"),
				m={
					sku:window.detailInfo||{},
						skuItems:{},
						filter:{},
						choose:null,
						isStock:1
				};
				m.template={
					sku:['{{ if(it.img && it.img != ""){ }}','<li class="{{=it.className}}" data-id="{{=it.id}}" data-src="{{=it.bigImg}}" title="{{=it.title}}"><img src="{{=it.img}}"><b></b></li>',"{{ }else{ }}",'<li class="{{=it.className}}" data-id="{{=it.id}}" title="{{=it.title}}">{{=it.title}}</li>',"{{ } }}"].join(""),
					stock:"库存{{=it.stock}}件",
					addcart:["<div class='content'>","<div class='head clearfix'>","<a href='javascript:;' class='J_Close close-btn'>关闭</a>","</div>","<div class='body'>",'<iframe src=\'{{=it.src}}\' width="500" height="{{=it.farameHeight}}" scrolling="no" frameborder="0">',"</div>","</div>"].join(""),
					xchf:['<div class="content">','<div class="body">',"<h4>菇凉，您有&nbsp;{{=it.num}}&nbsp;笔订单超期未还款</h4>","<p>请先还款，才能使用先穿后付下单</p>",'<a class="go-pay" href="{{=it.host}}/trade/order/list4buyer/?stage=2&f=fukuan" target="_blank" title="去付款"></a>',"</div>","</div>"].join(""),
					promotion:['<span class="count-num d">{{=it.day}}</span><span class="count-text">天</span>','<span class="count-num h">{{=it.hour}}</span><span class="count-text">时</span>','<span class="count-num m">{{=it.min}}</span><span class="count-text">分</span>','<span class="count-num s">{{=it.sec}}</span><span class="count-text">秒</span>'].join(""),
					trailer:['<span class="h">{{=it.hour}}</span>时','<span class="m">{{=it.min}}</span>分','<span class="s">{{=it.sec}}</span>秒'].join(""),
					double11:['<span class="d">{{=it.day}}</span>','<span class="h">{{=it.hour}}</span>','<span class="m">{{=it.min}}</span>'].join(""),
					getPro:['<div style="padding:20px;min-width:200px;">','<p style="text-align:center;color:#666;font-size:14px;">{{=it.msg}}</p>',"{{?it.isShow}}",'<p style="margin-top:20px;text-align:center;"><a class="close" href="http://www.mogujie.com/trade/promotion/user/shopcoupon" target="_blank" style="background: #f36; color: #fff; font-size: 18px; text-align: center; padding: 5px 10px; display: inline-block; border-radius: 3px;">查看优惠券</a></p>',"{{?}}","</div>"].join("")
				},
				t.render={
					init:function(){
						i.setData(m.sku),
						t.render.sku(),
						t.render.stock(i.getTotalStock()),
						t.render.smallImgs()
					},
					sku:function(){
						var e=i.getSkuItems();
						if("undefined"!=typeof e&&e){
							var s=e.style,n=i.getStyleLen(),o=e.size,a=i.getSizeLen(),l=[],d=[];
							if(s&&n>0){
								for(var c in s){
									var u={};
									u=s[c].image&&""!=s[c].image?{
										className:"img",
										id:c,
										title:s[c].style,bigImg:s[c].image,
										img:s[c].image.replace("468x468","100x100")}:{
										className:"",
										id:c,title:s[c].style,
										bigImg:"",
										img:""
									},
									s[c].disable?u.className=u.className+" disable":1==n&&(u.className=u.className+" c",m.filter.styleId=c),
									l.push(MGTOOL.template(m.template.sku,u))
					}
					r.find(".style").show().find(".J_StyleList").html(l.join(""))
					}
					else r.find(".style").hide();
					if(o&&a>0){
						for(var c in o){
							var u={
								className:"",id:c,title:o[c].size,bigImg:"",img:""
							};
					o[c].disable?u.className=u.className+" disable":1==a&&(u.className=u.className+" c",m.filter.sizeId=c),d.push(MGTOOL.template(m.template.sku,u))
						
					}r.find(".size").show().find(".J_SizeList").html(d.join(""))
						
					}else r.find(".size").hide();

					m.skuItems=e,t.render.fresh()
						
				}
			},
			fresh:
			function(){
				if("undefined"!=typeof m.skuItems&&m.skuItems){
					var e=i.getSkuItem(m.filter,m.skuItems);
					e&&(t.render.price(e),t.render.stock(e.stock),t.render.list(e),m.choose=e)
				}
			},
			stock:
			function(t){
				d.html(t?MGTOOL.template(m.template.stock,{stock:t}):""),f.attr("data-stock",t)
			},
			list:function(e){
				var i=e.stocks,s=0;
				if(i){
					for(var n in i){
						s+=i[n];
						var o=r.find('li[data-id="'+n+'"]');
						0===i[n]?o.addClass("disable"):o.removeClass("disable")
					}
					e.stock||t.render.stock(s)
				}
			},
			price:
			function(t){
				"undefined"!=typeof t&&t&&("string"==typeof t.price?$("#J_Price").text(t.price):m.sku.main.price&&$("#J_Price").text(m.sku.main.price),"string"==typeof t.nowprice?$("#J_NowPrice").text(t.nowprice):m.sku.main.nowprice&&$("#J_NowPrice").text(m.sku.main.nowprice))
			},
			bigImg:
			function(t){
				t&&""!=t&&(c[0].src=t)
			},
			smallImgs:
			function(){
				if("undefined"!=typeof m.skuItems&&m.skuItems){var t=m.skuItems.style,e=c.attr("data-main")||"",i=[];if(t){""!=e&&i.push('<li><img src="'+e.replace("468x468","100x100")+'"></li>');for(var s in t)""!=t[s].image&&i.push('<li><img src="'+t[s].image.replace("468x468","100x100")+'"></li>');u.find("ul").html(i.join(""))}}
			},
			xchf:
			function(t){
				var e={
					title:" ",
					lightBoxId:"J_XCHFBox",
					contentHtml:MGTOOL.template(m.template.xchf,{num:t,host:l}),
					scroll:!1,
					isBgClickClose:!1
				},
				i=new MGLightBox(e);
				i.init(),
				$("#J_XCHFBox").on("click",".lb_close, .go-pay",function(){i.close()})
				}
			},
			t.event={
				init:function(){
					t.event.buyNow(),
					t.event.buyCart(),
					t.event.buyXCHF(),
					t.event.scrollLoad(),
					t.event.updateSku(),
					t.event.chooseSku(),
					t.event.switchImg(),
					t.event.skuPannel(),
					t.event.switchFav(),
					t.event.swicthFavorable(),
					t.event.switchShare(),
					t.event.stockTip(),
					t.event.getPromotion(),
					t.event.dotlog(),
					s.init(f),
					$("#J_BeautyPromotionCountDown").length>0&&(a.init($("#J_BeautyPromotionCountDown"),m.template.promotion
					),t.event.resetFontSize()),
					$("#J_TuanPromotionCountDown").length>0&&(a.init($("#J_TuanPromotionCountDown"),m.template.promotion),t.event.resetFontSize()),$("#J_TrailerCountDown").length>0&&a.init($("#J_TrailerCountDown"),m.template.trailer),
					$("#J_Double11CountDownStart").length>0&&a.init($("#J_Double11CountDownStart"),m.template.double11),
					$("#J_Double11CountDownEnd").length>0&&a.init($("#J_Double11CountDownEnd"),m.template.double11)
				},
				chooseSku:function(){r.on("click","ol li:not(.disable)",function(){$("body").trigger("updateSku",[$(this)]),$("body").trigger("stockTip",[f.find(".num-input").val(),f.attr("data-stock")]),p.isBuy()&&r.find(".J_PannelOK").css("display","inline-block").prev().hide()})},
						
				updateSku:function(){$("body").on("updateSku",function(e,s){var n=s.closest("ol");if(s.hasClass("c")){if(n.hasClass("J_StyleList")){if(1===i.getStyleLen())return;if(s.removeClass("c"),delete m.filter.styleId,t.render.sku(),i.getSizeLen()>0&&m.filter.sizeId){var o=$('.J_SizeList li[data-id="'+m.filter.sizeId+'"]').removeClass("c");$("body").trigger("updateSku",[o])}t.render.bigImg(c.data("main"))}if(n.hasClass("J_SizeList")){if(1===i.getSizeLen())return;if(s.removeClass("c"),delete m.filter.sizeId,t.render.sku(),i.getStyleLen()>0&&m.filter.styleId){var a=$('.J_StyleList li[data-id="'+m.filter.styleId+'"]').removeClass("c");$("body").trigger("updateSku",[a])}}}else s.addClass("c").siblings().removeClass("c"),n.hasClass("J_StyleList")&&(m.filter.styleId=s.data("id"),m.filter.type="style",t.render.bigImg(s.data("src"))),n.hasClass("J_SizeList")&&(m.filter.sizeId=s.data("id"),m.filter.type="size"),t.render.fresh()})},
						
				stockTip:function(){$("body").on("stockTip",function(t,e,i){var s=r.find(".J_GoodsStockTip");+e>+i?(s.show(),m.isStock=0):(s.hide(),m.isStock=1)})},
						
				limitState:function(){$("body").on("limitState",function(t,e,i,s){var n=r.find(".num-add");s&&""!=s&&(e>=Math.min(+s,i)?n.addClass("num-disable"):n.removeClass("num-disable"))})},
						
				switchImg:function(){u.on("mouseenter","li",function(){var t=$(this).find("img").eq(0).attr("src");$(this).addClass("c").siblings().removeClass("c"),c[0].src=t.replace("_100x100.jpg","")}),u.find("li").length>5?(n.init(u,{width:370,height:59}),u.find("ul").addClass("carousel"),u.find(".right-btn").show()):u.find("ul").css("text-align","center")},
						
				buyNow:
				function(){
					$("#J_BuyNow").on("click",
						function(){
							if(r.data("btn",$(this)),!p.isBuy())
								return void r.addClass("goods-pannel");
							if($("body").trigger("stockTip",[f.find(".num-input").val(),f.attr("data-stock")]),m.isStock){
								var e=p.getParams();
								return t(e),!1
							}
						});
					var t=function(t){
						var e=$("<form>");
						e.attr({
							action:"handle.php",
							method:"POST"
						}).html('<input type="hidden" name="url" value="'+t.url+'" /><input type="hidden" name="name" value="'+t.name+'" /><input type="hidden" name="price" value="'+t.price+'" /><input type="hidden" name="sort" value="'+t.s01+t.s1+";"+t.s02+t.s2+'" /><input type="hidden" name="mess" value="'+t.mess+'" /><input type="hidden" name="img" value="'+t.img+'" /><input type="hidden" name="youzi" value="0" /><input type="hidden" name="num" value="'+t.num+'" /><input type="hidden" name="feiyong" value="'+t.feiyong+'" />'),
						$("body").append(e),
						e[0].submit()
					}
				},
				buyCart:
				function(){
				},
				buyLimit:
				function(){
					$("#J_BuyLimit").on("click",function(){if(""===MOGUPROFILE.userid)
						return MOGU.user_handsome_login_init(),callback_option={callback:function(){$self.trigger("click")}},void MOGU.user_handsome_login(!1,callback_option);
						if(!p.isBuy())
							return void r.addClass("goods-pannel");
						if($("body").trigger("stockTip",[f.find(".num-input").val(),f.attr("data-stock")]),m.isStock){
							var t={
								itemInfoId:window.detailInfo.itemid,
								shopId:$("#shopid").val(),
								stockId:m.choose.id,number:+f.find(".num-input").val(),
								uuid:MGTOOL.getCookie("__mgjuuid")||""
							};
							$.ajax({url:"http://s7.mogucdn.com/trade/item_detail/buynow",type:"POST",dataType:"json",data:t}).done(function(t){1001==t.status.code?t.result.orderId&&(location.href="http://www.mogujie.com/trade/orderpay/index?orderId="+t.result.orderId):$.alert(t.result.error||t.status.msg)})
						}
					})
				},
						
				buyXCHF:
				function(){
					$("#J_BuyXCHF").on("click",function(){
						var i=$(this);
						if(r.data("btn",i),""===MOGUPROFILE.userid)
							return MOGU.user_handsome_login_init(),callback_option={callback:function(){i.trigger("click")}},void MOGU.user_handsome_login(!1,callback_option);
						if(!p.isBuy())
									return void r.addClass("goods-pannel");
						if($("body").trigger("stockTip",[f.find(".num-input").val(),f.attr("data-stock")]),m.isStock&&!t.event.xchf()){
							var s=p.getParams();
							return e(s),!1
						}
					});
					var e=function(t){
						var e=$(['<form action="'+l+'/trade/generateorder/account?click=xianchuanhoufu" method="POST">','<input type="hidden" name="postdata" value="'+t.id+","+t.num+'" />','<input type="hidden" name="outPayType" value="9"/>',"</form>"].join(""));
						$("body").append(e),e[0].submit()
					}
				},
				xchf:
				function(){
					var e=!1;
					return $.ajax({url:"http://s7.mogucdn.com/trade/credit/expirednotrepay",type:"POST",timeout:25e3,dataType:"json",async:!1,success:function(i){var s=i.status.code,n=i.result;1001==s&&n&&n>0&&(e=!0,t.render.xchf(n))}
					}),e
				},
						
				skuPannel:
				function(){
					r.on("click",".J_PannelClose",function(){r.removeClass("goods-pannel")}).on("click",".J_PannelOK",function(){r.removeClass("goods-pannel").data("btn").trigger("click")})
				},
						
				switchFav:
				function(){
				},
						
				switchShare:
				function(){
				},
				swicthFavorable:
				function(){
				},
					
				getPromotion:
				function(){
							function t(t,e){
								var i={
									title:"温馨提示",
									lightBoxId:"J_GetProBox",
									contentHtml:MGTOOL.template(m.template.getPro,{msg:t,isShow:e}),
									scroll:!1,
									isBgClickClose:!1
							},
							s=new MGLightBox(i);
							s.init(),$("#J_GetProBox").on("click",".lb_close, .close",function(){s.close()})
							}
							var i=!1;
							e.on("click",".get-pro",function(){
								var e={},s=$(this),n=$("#shopid").val();
								return""===MOGUPROFILE.userid?(MOGU.user_handsome_login_init(),callback_option={callback:function(){s.trigger("click")}},void MOGU.user_handsome_login(!1,callback_option)):(e.pid=s.attr("data-id"),void(i||(i=!0,$.ajax({url:"http://shop.mogujie.com/"+n+"/index/getPromotion",type:"POST",dataType:"JSON",data:e
							}).done(function(e){var i=e.status.code;1001==i?t("领取成功",1):t(e.result.error,0)}).fail(function(){$.alert("系统繁忙")}).always(function(){i=!1}))))})
				},
						
				switchElem:function(t,e){var i=null;t.hover(function(){i&&clearTimeout(i),e.show()},function(){i=setTimeout(function(){e.hide()},100)})},
						
				resetFontSize:
				function(){
					var t=e.find(".price");
					priceWidth=t.width(),
						priceWidth>220&&t.find(".price-u").css("font-size",25).end().find(".price-n").css("font-size",25)
				},	
				dotlog:
				function(){
					if(window.detailInfo){
						var t=$("#shopid").val(),
							e=$("#cpcid").val(),
							i=window.detailInfo.itemid,
							s=MOGUPROFILE&&MOGUPROFILE.logString;
						$.ajax({url:"http://s7.mogucdn.com/trade/item_detail/dotlog",type:"POST",dataType:"json",data:{itemId:i,shopId:t,cpcId:e,logString:s}}).done(function(t){var e=t.result;e&&$("#cpcid").val(e)})
					}
				},
						
				scrollLoad:
				function(){
					var t=$("#shopid").val(),
						e=[{
							name:"ModuleLook",
							url:"http://s7.mogucdn.com/trade/item_detail/hotlist?type=lookbox&shopId="+t+"&itemId="+m.sku.itemid+"&isNewDetail=1",
							callback:function(t){1001==t.status.code&&$("#J_ModuleLook").html(t.result||"")}
						},
						{
							name:"ModuleRecom",
							url:"/trade/item_detail/hotlist?type=shoprecm&shopId="+t+"&itemId="+m.sku.itemid+"&isNewDetail=1",
							callback:function(t){1001==t.status.code&&$("#J_ModuleRecom").html(t.result||"")}
						},
						{
							name:"ModuleLike",
							url:"/trade/item_detail/hotlist?type=hotlist&shopId="+t+"&itemId="+m.sku.itemid+"&isNewDetail=1",
							callback:function(t){1001==t.status.code&&$("#J_ModuleLike").html(t.result||"")}
						}
						];
						o.init(e)
					}
				};
				var p={
					isBuy:
					function(){
						var t=i.getStyleLen(),e=i.getSizeLen();
						if(t>0&&e>0)
							return m.filter.styleId&&m.filter.sizeId?1:0;
						if(t>0&&0>=e)
							return m.filter.styleId?1:0;
						if(0>=t&&e>0)
							return m.filter.sizeId?1:0;
						if(0>=t&&0>=e){var s=window.detailInfo.attribute;
						return s&&1==s.length?(m.choose=s[0],1):0
					}
			},	
			getParams:
			function(){
				var t={};
				return	t.id=m.choose.id,
						t.num=+f.find(".num-input").val(),
						t.traceid=$("#traceid").val()||"",
						t.cpcid=$("#cpcid").val()||"",
						t.mess=$("#mess").val(),
						t.bigImg=$("#J_BigImg").attr("src"),
						t.sImg=$(".img.c ").attr("data-src"),
						t.img=t.sImg?t.sImg:t.bigImg,
						t.name=$(".goods-title").text(),
						t.price=$("#J_NowPrice").text(),
						t.url=$("#url").val(),
						t.fei=$("#fei").val(),
						t.s1=$(".J_StyleList").children(".c").attr("title")?$(".J_StyleList").children(".c").attr("title"):'',
						t.s2=$(".J_SizeList").children(".c").attr("title")?$(".J_SizeList").children(".c").attr("title"):'',
						t.s01=$(".style.clearfix").children("dt").text(),
						t.s02=$(".size.clearfix").children("dt").text(),
						t.feiyong=(parseFloat(t.price)*parseFloat(t.num)*(parseFloat(t.fei)/100)).toFixed(2),
						t
			},	
			getBuyURL:
			function(t,e){
					
					var i=[l];
					
					switch(t){
						
						case"WX_CART":
							
						i.push("/add2cart2");
						break;
						case"CART":
							
						i.push("/trade/cart/add2cart2")
							
					}
					return i.push("?stockId="+e.id+"&number="+e.num+"&traceid="+e.traceid+"&cpcid="+e.cpcid),i.join("")		
				}
			},
			h=function(){
				t.render.init(),t.event.init()	
			};	
			return{init:h}
		}
		},
		{"../api/sku":"/Users/rufeng/www/shop-detail/api/sku.js","../js/widget/carousel":"/Users/rufeng/www/shop-detail/js/widget/carousel.js","../js/widget/count-down":"/Users/rufeng/www/shop-detail/js/widget/count-down.js","../js/widget/input-num":"/Users/rufeng/www/shop-detail/js/widget/input-num.js","../js/widget/scroll-load":"/Users/rufeng/www/shop-detail/js/widget/scroll-load.js"}
	],
	"/Users/rufeng/www/shop-detail/js/module-detail-main.js":[
				function(t,e){e.exports=function(){var t={},e=($("#J_NavBox"),$("#J_GoodsNav"));
					t.render={
						init:function(){t.render.code()},
						code:function(){e.find(".code").length<=0||e.find(".code").qrcode({size:80,width:80,height:80,ecLevel:"L",text:e.find(".code-url").val()})}
					},		
					t.event={
						init:function(){MOGU.lazyload(".img-pre-lazyload",{preHeight:500,fade:!1}),t.event.chooseNav(),t.event.fixedNav(),t.event.showCode()},	
						chooseNav:function(){
							var t=e.find(".list"),i=e.find(".tags"),s=t.height(),n=i.height(),o=0;e.on("click","li:not(.other), .tags a",function(){var t=$(this).data("id");
							$(this).addClass("c").siblings().removeClass("c"),$("#"+t).length<=0||("J_ModuleComment"==t||"J_ModuleOrder"==t?(o=s,i.hide()):"J_ModuleDetail"==t?(o=-28,i.show()):o=s+n,$("html, body").scrollTop($("#"+t).offset().top-o-28))})
						},
						fixedNav:function(){
							var t=e.offset().top+30,i=e.width();
							$(window).scroll(function(){
								var s=document.body.scrollTop||document.documentElement.scrollTop;
								s>=t?e.addClass("main-nav-fixed").width(i):e.removeClass("main-nav-fixed").width("")})
						},
						showCode:function(){
							if(!(e.find(".code").length<=0)){
								var t=e.find("li.other"),
									i=t.find(".scan-code"),
									s=t.find(".scan-buy"),
									n=i.find("b"),
									o=null;
								t.hover(function(){
									o&&clearTimeout(o),
									n.addClass("c"),
									s.show()
								},
								function(){
									o=setTimeout(function(){
										n.removeClass("c"),s.hide()},100)})
								}
							}
						};
					var i=function(){t.render.init(),t.event.init()};
					return{init:i}
				}
			},
						
		{}
	],
	"/Users/rufeng/www/shop-detail/js/module-detail-sale.js":[
		function(t,e){e.exports=function(){var t={},e=$("#J_ModuleOrder");
					t.render={
						
						init:function(){}},
							
						t.event={
							
							init:function(){t.event.switchPage(),t.event.getSales()},
								
							switchPage:function(){var t=$("#J_GoodsNav").height();e.on("click",".pagination a",function(e){e.preventDefault();var i=$(this).attr("href");i&&""!=i&&$.ajax({url:i,type:"POST",dataType:"JSON",data:{isNewDetail:1}}).done(function(e){if(null==e)alert(MGLANG.msgTimeout);else if(1001==e.status.code){var i=$("#J_ModuleOrders");i.html(e.result.html),$("html, body").scrollTop(i.offset().top-t)}else alert(e.status.msg)}).fail(function(){}).always(function(){})}
							
							)},
								
							getSales:function(){if(window.detailInfo){{$("#shopid").val()}$.post("/trade/item_detail/orderlist?itemId="+window.detailInfo.itemid+"&page=1&isNewDetail=1",{},function(t){var t=$.parseJSON(t);1001==t.status.code&&($("#J_ModuleOrders").html(t.result.html||""),$(".J_SaleNum").html(t.result.count||0))})}}};
					
					var i=function(){t.render.init(),t.event.init()};
					return{init:i}}},
						
		{}
	],
	"/Users/rufeng/www/shop-detail/js/page-shop-detail.js":[
		function(t){var e=t("./module-detail-goods"),i=t("./module-detail-main"),s=t("./module-detail-comment"),n=t("./module-detail-sale");e().init(),i().init(),s().init(),n().init()},{"./module-detail-comment":"/Users/rufeng/www/shop-detail/js/module-detail-comment.js","./module-detail-goods":"/Users/rufeng/www/shop-detail/js/module-detail-goods.js","./module-detail-main":"/Users/rufeng/www/shop-detail/js/module-detail-main.js","./module-detail-sale":"/Users/rufeng/www/shop-detail/js/module-detail-sale.js"}
	],
	"/Users/rufeng/www/shop-detail/js/widget/carousel.js":[
		function(t,e){e.exports.init=function(t,e){
						var i={},e=$.extend(i,e),s=t.find("ul"),n=s.find("li").eq(0),o=s.find("li").length,a=parseInt(n.css("margin-right")),l=(n.width()+a)*o,r=0,d=!1;t.find(".list").width(e.width).height(e.height).end().on("click",".right-btn",function(){var t=$(this);
						-r>=l-e.width||d||(r-=e.width,s.animate({left:r},"slow","swing",function(){-r>=l-e.width?t.hide().prev().show():t.prev().show(),d=!1}),d=!0)}).on("click",".left-btn",function(){var t=$(this);0>=-r||d||(r+=e.width,s.animate({left:r},"slow","swing",function(){0>=-r?t.hide().next().show():t.next().show(),d=!1}),d=!0)})}},
							
		{}
	],
	"/Users/rufeng/www/shop-detail/js/widget/count-down.js":[
		function(t,e){e.exports.init=function(t,e){if(!(t.length<=0)){var s=t.attr("cut-time");i(s,t,e)}};
					var i=function(t,e,n){if(0>=t)return void window.location.reload();
					t--;
					var o=s(t),a=doT.template(n)(o);
					e.html(a),setTimeout(function(){i(t,e,n)},1e3)},
						s=function(t){var e=1,i=60,s=3600,n=86400,o=parseInt(t/n),a=parseInt(t/s)-24*o,l=parseInt(t/i)-60*parseInt(t/s),r=parseInt(t/e)-60*parseInt(t/i);return{day:o,hour:a,min:l,sec:r}}},
						
		{}
	],
	"/Users/rufeng/www/shop-detail/js/widget/input-num.js":[
		function(t,e){e.exports.init=function(t){var e=t.find(".num-input"),i=t.find(".num-add"),s=t.find(".num-reduce"),n=+e.val()||1,o=e.attr("data-limitnum"),a=function(){var e=+t.attr("data-stock");1>=n&&s.addClass("num-disable"),n>=e&&i.addClass("num-disable")},l=function(){i.on("click",function(){if(!$(this).hasClass("num-disable")){var i=+t.attr("data-stock");n=+e.val(),/^\d+$/.test(n)&&(++n,n>1&&s.removeClass("num-disable"),e.val(n),$("body").trigger("stockTip",[n,i]),o&&$("body").trigger("limitState",[n,i,o]))}}),s.on("click",function(){if(!$(this).hasClass("num-disable")){var i=+t.attr("data-stock");n=+e.val(),/^\d+$/.test(n)&&!s.hasClass("num-disable")&&(e.val(--n),1>=n&&s.addClass("num-disable"),$("body").trigger("stockTip",[n,i]),o&&$("body").trigger("limitState",[n,i,o]))}}),e.on("change",function(){var i=+t.attr("data-stock");return n=+e.val(),/^\d+$/.test(n)&&0!==n&&""!==n?(n>1&&s.removeClass("num-disable"),1>=n&&s.addClass("num-disable"),e.val(n),void $("body").trigger("stockTip",[n,i])):(e.val(1),void $("body").trigger("stockTip",[1,i]))})},r=function(){a(),l()};
					r()}},
						
		{}
	],
	"/Users/rufeng/www/shop-detail/js/widget/scroll-load.js":[
		function(t,e){
			e.exports.init=function(t){var e=t.length,i=0,s=window.innerHeight||document.documentElement.clientHeight,n=600,o=!1,a=function(t){if(t.length<=0)return void i++;var a=t.offset().top,l=document.body.scrollTop||document.documentElement.scrollTop||0;return l+s+n>=a&&e>=i?(o=!0,!0):!1},l=function(){$.ajax({url:t[i].url,type:"get",dataType:"json",cache:!1,data:{}}).done(function(e){t[i].callback&&t[i].callback(e)}).fail(function(){}).always(function(){i++,o=!1})},r=function(){if(!(i>=e)){var s=$("#J_"+t[i].name);!o&&a(s)&&l()}},d=function(t,e){var i=null;return function(){var s=this,n=arguments;clearTimeout(i),i=setTimeout(function(){t.apply(s,n)},e)}};
						window.onscroll=d(r,50)
					}
				},
			{}
	]
	},
	{},
	["/Users/rufeng/www/shop-detail/js/page-shop-detail.js"]
);